package com.xn.example.service;

import com.xn.example.service.hystrix.ProviderServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "spring-cloud-producer",fallback = ProviderServiceHystrix.class)
public interface ProviderService {

    @RequestMapping("test01")
    public String test01(@RequestParam String name);
}
